home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 114 / macaddict114.cdr / Software / Internet & Communication / IOXWebcamX-1.1.dmg / IOXWebcamX-1.1.pkg / Contents / Resources / postflight < prev    next >
Encoding:
Text File  |  2005-05-05  |  1.4 KB  |  58 lines

  1. #!/bin/sh +x
  2.  
  3. # use -x for extensive logging
  4.  
  5.  
  6. /bin/chmod 755 "$1/Contents/Resources/VideoInstallerTools.sh"
  7. source "$1/Contents/Resources/VideoInstallerTools.sh"
  8.  
  9. if [ -r "$1/Contents/Resources/Inventory.sh" ]
  10. then
  11.     source "$1/Contents/Resources/Inventory.sh"
  12. fi
  13.  
  14. processPostflightArgs "$1" "$2" "$3" "$4"
  15. defineInstallLocations "IOXperts" "IOXperts"
  16.  
  17. # Logs
  18. mkdir -p "/Library/Logs/IOXperts"
  19. chmod 777 "/Library/Logs/IOXperts"
  20.  
  21. # Prepare All Components
  22. fixDirectoryPermissions
  23. prepareCameraControl
  24. prepareDeviceMonitor
  25. prepareRegisterApp
  26. prepareSessionMonitor
  27. prepareIdentifierApp
  28.  
  29.  
  30. # Logs
  31. mkdir -p  "/Library/Logs/IOXperts"
  32. chmod 777 "/Library/Logs/IOXperts"
  33.  
  34. # Components
  35. showInstallerState "Preparing Video Digitizer"
  36. prepareInstalledComponent        "${DIGITIZER_COMPONENT}" "IOXperts Webcam"            ".component"
  37.  
  38. showInstallerState "Preparing SGPanel"
  39. prepareInstalledComponent        "${SGPANEL_COMPONENT}"   "IOXperts Video Support"    ".component"
  40.  
  41. repairQuickTime
  42.  
  43. # TODO - require reboot instead of starting DM.
  44. # TODO - if can't find register app, or SM uncomment the following line to force launch prefs
  45. # setAppLocationPreferences
  46. registerDeviceMonitorAsGlobalLoginItem
  47. registerSessionMonitorAsGlobalLoginItem
  48. # registerAppsWithLaunchServices - not avl on 10.2.8
  49. startDeviceMonitor
  50. startSessionMonitor
  51.  
  52. # NOTE - added this for beta - have SM launch this as needed instead.
  53. startIdentifierApp
  54.  
  55. showInstallerState "Postflight Completed"
  56. exit 0
  57.  
  58.